package com.twxm.breed.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.twxm.breed.entity.LoginInfo;
import com.twxm.breed.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LoginInfoMapper extends BaseMapper<LoginInfo> {
    String selectUserIdByOpenId(String openId);

    User getUserByOpenId(String openId);

    void insertLoginInfo(LoginInfo loginInfo);

    LoginInfo isExistUserId(String userId);

    String getPassword(String userId);

    Integer getFlag(String userId);

    List<String> getOpenIds();
}
